package EntityBeans;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

@Entity
@IdClass(AmiciziaID.class)
@Table(name="amicizia")
public class Amicizia implements Serializable{

	private static final long serialVersionUID = 1L;

	private String idamico1;
	private String idamico2;
	
	@Id
	@Column(name="idamico1")
	public String getIdamico1() {
		return idamico1;
	}
	public void setIdamico1(String idamico1) {
		this.idamico1 = idamico1;
	}
	
	@Id
	@Column(name="idamico2")
	public String getIdamico2() {
		return idamico2;
	}
	public void setIdamico2(String idamico2) {
		this.idamico2 = idamico2;
	}
	
}
